<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="RoverCommodity.RoverCommodityShow" %>
<%@ page import="RoverCommodity.RoverCommodity" %>
<%@ page import="java.sql.*"%>
<html>
  <head>
    <title>显示商品的详细信息</title>
    <link href="../css/rover.css" rel="stylesheet" type="text/css" />
  </head>
<body>

  <%
  String RovComID=request.getParameter("RovComID");
  RoverCommodityShow a=new RoverCommodityShow();
  ResultSet rs=a.CalRoverCommodity(RovComID);
  String js=request.getParameter("js");
  RoverCommodity RoverCommodity=new RoverCommodity();
  if(rs.next())
  {
 
  RoverCommodity.setComID(rs.getString(1));
  RoverCommodity.setRovID(rs.getString(2));
  RoverCommodity.setComName(rs.getString(3));
  RoverCommodity.setShaDate(rs.getString(4));
  RoverCommodity.setSellerPh(rs.getString(5));
  RoverCommodity.setSellerName(rs.getString(6));
  RoverCommodity.setDesCribe(rs.getString(7));
  RoverCommodity.setComImage(rs.getString(8));
  RoverCommodity.setComPrice(rs.getFloat(9));
  RoverCommodity.setComInf(rs.getString(10));
  RoverCommodity.setRecency(rs.getInt(11));
  }
  %>
  <form name="From1" method="POST" action="RoverCommodityShow.jsp">
<div class="wrapper_first">
  <p class="title_first">当前位置 ： 东师格子铺 -----流动站 </p>
</div>
<div class="title"><img src="../images/hover_02_01_03.png" />
    <div class="title_2"><select name="SearchWay" class="xuanze_css"><option value="All">全部信息</option></select><input name="sousuo" type="text" class="sousuo" /></div>
    <div class="sousuoDiv"><input name="queren" type="button"  class="souduoqueren"/></div>
</div>
<div class="wrapper_left_prod">
  <div class="title_proInfo">TOP</div>
  <div class="wrapper_baseInfo">
   	<h1 class="title_baseInfo">商品基本信息</h1>
      <img src=<%="../"+RoverCommodity.getComImage()%> class="img_baseInfo" />
      <div class="baseInfoPro">
       	  <span>商品名称：<%= RoverCommodity.getComName()%></span><br/>
          <span>商品编号：<%= RoverCommodity.getComID()%></span><br/>
          <span>商品价格：<%= RoverCommodity.getComPrice()%></span><br/>
          <span>卖家：<%= RoverCommodity.getSellerName()%></span><br/>
          <span>卖家电话：<%= RoverCommodity.getSellerPh()%></span>
          <span>流动站编号：<%= RoverCommodity.getRovID()%></span><br/>
          <span>上传日期：<%= RoverCommodity.getShaDate()%></span><br/>
          <span>上新旧程度：<%= RoverCommodity.getRecency()%></span><br/>
          <a href="" class="buyBtn"></a>
      </div>
      
      <h2 class="title_proIntro">产品介绍:</h2>
      <div class="wrapper_proIntro">
      	<span><%= RoverCommodity.getDesCribe()%></span>
      	<span>备注：<%= RoverCommodity.getComInf()%></span>
      </div>
    </div>
</div>
<div class="wrapper_right_prod">
	<div class="border_rightList">
	<ul class="ul_oneKey">
        	<li><a href="">运动休闲</a></li>
            <li><a href="">礼品服饰</a></li>
            <li><a href="">个人闲置</a></li>
            <li><a href="">图书类</a></li>
            <li><a href="">数码产品</a></li>
            <li><a href="">电脑周边</a></li>
        </ul>
        <br clear="all" />
    </div>
</div>
 <a href="javascript:history.go(-1);">返回</a>
</form>
</body>
</html>
